package by.admonko.universaltesting.services;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import by.admonko.universaltesting.datamodel.Question;

public interface QuestionService {
	@Transactional
	Question getQuestion(Integer id);

	@Transactional
	List<Question> getAll();

	@Transactional
	void setQuestion(Question question);

	@Transactional
	void updateQuestion(Question question);

	@Transactional
	void deleteQuestion(Integer id);

	@Transactional
	void deleteQuestionList(List<Integer> list);

	@Transactional
	List<Question> getQuestByTest(
			by.admonko.universaltesting.datamodel.Test test);

}
